package com.xayy.mgt.enums;

import lombok.Getter;

/**
 * 卫星激光头
 */
@Getter
public enum SateRateEnum {

    JGT1(0, 312.5D),
    JGT2(1, 625D),
    JGT3(2, 1250D),
    ;

    SateRateEnum(Integer number, Double rate) {
        this.number = number;
        this.rate = rate;
    }

    private final Integer number;
    
    private final Double rate;


    public static Double getRate(Integer number) {
        for (SateRateEnum value : values()) {
            if (value.number.equals(number))
                return value.rate;
        }
        return 0D;
    }


}
